﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.PersonLayOffRecordVMs
{
    public partial class PersonLayOffRecordTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._PersonLayOffRecord._PersonCode")]
        public ExcelPropety PersonCode_Excel = ExcelPropety.CreateProperty<PersonLayOffRecord>(x => x.PersonCode);
        [Display(Name = "_Model._PersonLayOffRecord._PersonName")]
        public ExcelPropety PersonName_Excel = ExcelPropety.CreateProperty<PersonLayOffRecord>(x => x.PersonName);
        [Display(Name = "_Model._PersonLayOffRecord._Opertion")]
        public ExcelPropety Opertion_Excel = ExcelPropety.CreateProperty<PersonLayOffRecord>(x => x.Opertion);
        [Display(Name = "_Model._PersonLayOffRecord._OperatonTime")]
        public ExcelPropety OperatonTime_Excel = ExcelPropety.CreateProperty<PersonLayOffRecord>(x => x.OperatonTime);
        [Display(Name = "_Model._PersonLayOffRecord._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<PersonLayOffRecord>(x => x.CreateTime, true);
        [Display(Name = "_Model._PersonLayOffRecord._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<PersonLayOffRecord>(x => x.UpdateTime, true);
        [Display(Name = "_Model._PersonLayOffRecord._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<PersonLayOffRecord>(x => x.CreateBy);
        [Display(Name = "_Model._PersonLayOffRecord._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<PersonLayOffRecord>(x => x.UpdateBy);

	    protected override void InitVM()
        {
            
        }

    }

    public class PersonLayOffRecordImportVM : BaseImportVM<PersonLayOffRecordTemplateVM, PersonLayOffRecord>
    {
            //import

    }

}